package com.api.gbhg.xingyuhao.api;


import com.api.gbhg.daizhishun.Vo.ExpenseAccountVo;
import com.api.gbhg.xingyuhao.service.PoiServiceImpl;

import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import java.util.List;


/**
 * Excel导出
 * Mr.xyh
 * 2021.04.19
 * @author Administrator
 */
@Path("/excel")
public class ExcelApi {
    @POST
    @Path("/downLoadExcel1")
    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_OCTET_STREAM)
    public String downLoadExcel1(@Context HttpServletResponse response , List<ExpenseAccountVo> data) {
        PoiServiceImpl poiService = new PoiServiceImpl();
        String s = poiService.downLoadExcel1(response,data);
        return s;
    }
}
